﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using zhangmenren.Db;
using zhangmenren.Models;

namespace zhangmenren.IService
{
    public interface IEnterpriseService: IDependency
    {
        Task<int> Add(EnterpriseEntity enterprise);
        Task<int> Del(int id);
        Task<int> EditState(int id);
        Task<int> EditSort(int id,int num);
		Task<int> AddLiuLan(int id);
		/// <summary>
		/// 查询企业名录  等于false的时候是查询所有   后台使用
		/// </summary>
		/// <returns>The select.</returns>
		/// <param name="isOK">If set to <c>true</c> is ok.</param>
		Task<IEnumerable<EnterpriseEntity>> Select(bool isOK=false);
        Task<IEnumerable<EnterpriseEntity>> Select(int id);


    }
}
